package com.zhao.message.api;

import feign.hystrix.FallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created on 2019/7/22.
 *
 * @author zhao
 * @email 136689260@qq.com
 */
@FeignClient(name = "message", fallback = FallbackFactory.Default.class)
public interface MessageFeignService {

    @RequestMapping("/messageFeign/{message}")
    String messageFeign(@PathVariable("message") String message);
}
